How to fix a broken GRUB install under Arch Linux

2021-6-26

Your GRUB broke? Disk shows up in BIOS but it says
no media found
when you try to use it?
In my case I had three partitions, one with EFI
/dev/sdx1
, one with GRUB
/dev/sdx2
and one with the OS
/dev/sdx3
, which was encrypted.
First make an Arch Linux ISO. Boot it and then enter

cryptsetup luksOpen /dev/sdx1 cryptdevice

and type your device password.
Then mount your root under
/dev/mapper
, in this example
arch-root
with
mount /dev/mapper/arch-root /mnt

Proceed with
mount /dev/sdx2 /mnt/boot

mount /dev/sdx1 /mnt/boot/efi

arch-chroot /mnt

grub-install

exit

reboot

and your OS should work as before.
Your GRUB broke? Disk shows up in BIOS but it says
no media found
when you try to use it?

In my case I had three partitions, one with EFI
/dev/sdx1
, one with GRUB
/dev/sdx2
and one with the OS
/dev/sdx3
, which was encrypted.

First make an Arch Linux ISO. Boot it and then enter

cryptsetup luksOpen /dev/sdx1 cryptdevice

and type your device password.
Then mount your root under
/dev/mapper
, in this example
arch-root
with

mount /dev/mapper/arch-root /mnt

Proceed with
mount /dev/sdx2 /mnt/boot

mount /dev/sdx1 /mnt/boot/efi

arch-chroot /mnt

grub-install

exit

reboot

and your OS should work as before.




Back